package com.gee.spring.boot.starter.opengemini.core.domain;

import java.util.List;

/**
 * @author gepengjun
 * @since 2024/4/29 10:32
 */
public class Page <T>{

    private long current = 1;

    private long pageSize = 10;

    private long total = 0;

    private List<T> dataList;

    public long getCurrent() {
        return current;
    }

    public void setCurrent(long current) {
        this.current = current;
    }

    public long getPageSize() {
        return pageSize;
    }

    public void setPageSize(long pageSize) {
        this.pageSize = pageSize;
    }

    public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }

    public List<T> getDataList() {
        return dataList;
    }

    public void setDataList(List<T> dataList) {
        this.dataList = dataList;
    }

    @Override
    public String toString() {
        return "Page{" +
                "current=" + current +
                ", pageSize=" + pageSize +
                ", total=" + total +
                ", dataList=" + dataList +
                '}';
    }
}
